/*************************
 * 此js为GroupClassmanagement.vue提供后端数据，以及把GroupClassmanagement.vue中的数据发送到后端
 */

import request from '../http/index.js'

//定义函数

//传递输入表单数据
export const handleGroupClassSubmit = (GroupClassFormData) => {
    return request({
        url: '/course/save',
        method: 'post',
        data: GroupClassFormData
    })
}

export const handleGroupClassDelete = (GroupClassFormData) => {
    
    return request({
        url: '/course/delete',
        method: 'post',
        data: GroupClassFormData
    })
}
export const handleGroupClassEdit = (GroupClassFormData) => {
    
    return request({
        url: '/course/update',
        method: 'post',
        data: GroupClassFormData
    })
}


export const handleGroupClassData = () => {
    return request({
        url: '/course/findAll',
        method: 'get'
    })
}